<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/WEB-INF/jsp/sys/css.jsp"%>
<%@ include file="/WEB-INF/jsp/sys/uploader.jsp" %>
<%@page import="com.centit.util.RequestUtil" %>

<html lang="zh-cmn-Hans">
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/modules/util/static/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/modules/util/static/plugin/css/index.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/modules/util/static/ztree/js/jquery.ztree.all.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/modules/util/static/plugin/js/selectTree.js"></script>
<script type="text/javascript"	src="${pageContext.request.contextPath}/modules/airplanebaseinfo/airplanebaseinfo/ctrl/airplanebaseinfo.edit.js"></script>
<style>
.layui-form-select{
width: 80%;
float: left;
}
.layui-input, .layui-select, .layui-textarea{
border-width: 0px;
}
    .stream-main-upload-box {
        border: none;
    }

    .centit-uploader .uploaded-files li {
        padding: 10px 20px 10px 10px;
    }
.uploaded-delete{
    display: none;
    }
</style>
</head>
<body>
	<form class="layui-form" action="" style="padding: 10px"
		lay-filter="cwForm" id="cwForm">
		<input type="hidden" name="recId" id="recId" value="${object.recId}">
		<input type="hidden" name="transContent" id="transContent" value="">
		<table class="viewTable" style="width: 90%">
			<tr>
				<th>飞机批文</th>
	                    <td colspan="3">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="pw" name="pw"  value="${object.pw}" disabled="disabled"/>
	                        </div>
	                    </td>
			</tr>
		</table>
		<div style="text-align: center; margin-top: 20px">
		<button class="layui-btn" lay-submit="" type="button" onclick="flowedit()">批文审核意见</button>
		</div>
	</form>
	<script>
var basePath= "${pageContext.request.contextPath}";
</script>

 <script type="text/javascript">
  window.UploaderPath='${cp:SYS_VALUE("uploaderpath")}/';
	index = setInterval(setUpload, '1000');
	function setUpload() {
	      try {
	    	  if (typeof $('#pw', null).uploader === "function") { 
	              clearInterval(index);
	              $('#pw', null).uploader({
	                  UploaderPath: window.UploaderPath,           
	                  ViewContextPath: window.UploaderPath,
	                  info: {
	                      optId: 'applyAdd'    
	                  }
	              });
	          } else {
	        	  
	          }
	    	//如果是查看的需要去除附件中的操作按钮
	            $(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
	            $("#i_select_files_upload_demo_0").find("button").remove();
	            $("#i_select_files_upload_demo1_0").find("button").remove(); 
	      } catch (e) {
	      }
	  } 
	function flowedit(){
		var recId = $("#recId").val();
		 var index = parent.layui.layer.open({
             title : "批文审核意见",
             type : 2,
             skin:'layui-layer-molv',
             area: ['990px', '600px'],
             offset: 't',
             content : basePath + '/service/airplanebaseinfo/airplanebaseinfo/oa/floweditpw?flowOptTag='+recId,
             success : function(layero, index){
             }
         });
	}
 </script>
</body>
</html>
